def factorial(n):
    if n == 1:
        return 1
    else:
        return n * factorial(n - 1)


N = int(input("请输入数列的数据个数:"))
times = 1e13
day_secs = 60 * 60 * 24
year_secs = 365 * day_secs
combinations = factorial(N)
years = combinations / (times * year_secs)
print(f"数据个数{N},数列组合数 = {combinations}")
print(f"需要{years}年才可以获得结果")
